package com.intxt.bbs.controller;

import java.util.List;

import com.intxt.bbs.model.Area;
import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.TableMapping;
import com.jfinal.render.JsonRender;

public class AreaController extends Controller {
	
	public void inde(){
		
	}
	
	public void getAllArea(){
		List<Area> list = Area.DAO.find("select * from "+TableMapping.me().getTable(Area.class).getName());
		render(new JsonRender(list).forIE());
		
	}
}
